<template>
  <div class="q-pa-md" style="max-width: 500px">
    <t-toggle v-model="visible" label="Visible image" class="q-mb-md" />

    <t-slide-transition>
      <div v-show="visible">
        <img class="responsive" src="https://cdn.quasar.dev/img/quasar.jpg" />
      </div>
    </t-slide-transition>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        visible: ref(true),
      };
    },
  };
</script>
